//package com.ruoyi.psi.base.producealarm.controller;
//
//import com.ruoyi.common.core.controller.BaseController;
//import com.ruoyi.common.core.domain.AjaxResult;
//import com.ruoyi.common.core.page.TableDataInfo;
//import com.ruoyi.common.utils.StringUtils;
//import com.ruoyi.psi.base.producealarm.domain.ProduceAlarmCond;
//import com.ruoyi.psi.base.producealarm.domain.ProduceAlarmDomain;
//import com.ruoyi.psi.base.producealarm.domain.ProduceAlarmDto;
//import com.ruoyi.psi.base.producealarm.service.IProduceAlarmService;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiImplicitParam;
//import io.swagger.annotations.ApiOperation;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.validation.annotation.Validated;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import java.util.ArrayList;
//import java.util.List;
//
///**
// * 产品报警阈值
// */
//@RestController
//@RequestMapping("/psi/base/producealarm")
//@Api(value = "产品报警阈值模块", tags = "产品报警阈值接口")
//public class ProduceAlarmController extends BaseController {
//    @Autowired
//    private IProduceAlarmService produceAlarmService;
//
//
//    /**
//     * 获取产品报警阈值列表
//     * @param cond
//     * @return
//     */
//    @ApiOperation(value = "获取产品报警阈值列表",notes = "查询所有产品报警阈值信息")
//    @PostMapping("/list")
//    public TableDataInfo list(@RequestBody ProduceAlarmCond cond) {
////        if (StringUtils.isNull(cond.getWarehouseId())){
////            return getDataTable(new ArrayList<ProduceAlarm>());
////        }
//        startPage();
//        List<ProduceAlarmDto> produceAlarmDtos = produceAlarmService.selectProduceAlarmList(cond);
//        return getDataTable(produceAlarmDtos);
//    }
//
//    /**
//     * 修改产品报警阈值列表
//     *
//     * @param produceAlarms
//     * @return
//     */
//    @ApiOperation(value = "修改产品报警阈值列表", notes = "修改产品报警阈值列表")
//    @ApiImplicitParam(name = "produceAlarms", value = "修改产品报警阈值列表", dataType = "List<ProduceAlarm>")
//    @PostMapping("/edit")
//    public AjaxResult edit(@Validated @RequestBody List<ProduceAlarmDomain> produceAlarms) {
//
//        return toAjax(produceAlarmService.updateProduceAlarm(produceAlarms));
//    }
//
//}
